package com.dkt.wap.domain;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.dkt.base.domain.User;

/**
 * 账号相关 mapper
 *
 * @ClassName: UserMapper
 * @Description:账号相关 mapper
 * @author: penghy
 * @date: 2020/6/29
 */
@Mapper
public interface UserMapper {

	/**
	 * 用户注册
	 *
	 * @param mobile 电话号码
	 * @return {@code Map<String,Object>} 昵称、电话号码
	 * @Title: getRecommendByMobile
	 * @Description:通过电话号码 获取推荐人
	 * @throw
	 */
	int insUserReg(User user);
	
	User selUserByUsername(@Param("username") String username);

}
